package com.lj.generator.enums;

import com.lj.common.enums.EnumDict;
import com.lj.common.enums.ICommonEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author luojing
 * @since 2025/1/21 15:14
 */
@Getter
@AllArgsConstructor
@EnumDict(name = "FormType")
public enum FormType implements ICommonEnum<Integer> {

    /**
     * 输入框
     */
    INPUT(1, "输入框", "el-input"),

    /**
     * 数字输入框
     */
    INPUT_NUMBER(2, "数字输入框", "el-input-number"),

    /**
     * 下拉框
     */
    SELECT(4, "下拉框", "el-select"),

    /**
     * 单选框
     */
    RADIO(5, "单选框", "radio-group"),
    /**
     * 单选按钮
     */
    RADIO_BUTTON(3, "单选按钮", "radio-button"),

    /**
     * 开关
     */
    SWITCH(6, "开关", "el-switch"),

    /**
     * 文本域
     */
    TEXT_AREA(8, "文本域", "textarea"),

    /**
     * 日期时间框
     */
    DATE_TIME(9, "日期时间选择器", "datetime-picker"),

    /**
     * 日期框
     */
    DATE(10, "日期选择器", "date-picker"),

    /**
     * 时间选择器
     */
    TIME(11, "时间选择器", "time-picker");

    private final Integer value;
    private final String desc;
    private final String type;
}
